package com.zhijian.medical.service;

import com.zhijian.medical.entity.po.PersonExperience;
import com.zhijian.medical.entity.vo.request.PersonExperienceSearchVo;
import com.zhijian.medical.entity.vo.response.PersonExperienceVo;
import com.zhijian.medical.util.Page;

import java.util.List;

/**
 * 人员学习或工作经历 业务处理层
 *
 * @author HCG
 * @version 1.0
 * @date 2022-03-23 22:25:40
 */
public interface PersonExperienceService {

    /**
     * 主键查询
     *
     * @param id
     * @return
     */
    PersonExperience selectById(Long id);

    /**
     * 主键查询vo
     *
     * @param id
     * @return
     */
    PersonExperienceVo selectVoById(Long id);

    /**
     * 按照主键删除
     *
     * @param id
     */
    void deleteById(Long id);

    /**
     * 根据人员id进行删除
     *
     * @param personId
     */
    void deleteByPersonId(Long personId);

    /**
     * 新增
     *
     * @param personExperience
     * @return
     */
    Long insert(PersonExperience personExperience);

    /**
     * 更改
     *
     * @param personExperience
     * @return
     */
    boolean update(PersonExperience personExperience);

    /**
     * 总数
     *
     * @param personExperienceSearchVo
     * @return
     */
    Integer count(PersonExperienceSearchVo personExperienceSearchVo);

    /**
     * 列表
     *
     * @param personExperienceSearchVo
     * @return
     */
    List<PersonExperienceVo> selectList(PersonExperienceSearchVo personExperienceSearchVo);

    /**
     * 分页查询
     *
     * @param personExperienceSearchVo
     * @return
     */
    Page<PersonExperienceVo> selectPage(PersonExperienceSearchVo personExperienceSearchVo);
}